package com.zhangliuliu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("pest")
public class InsectPestBean {
    /**
     * 虫害实体
     */
    @TableId(value = "pk_id",type = IdType.AUTO)
    private int IPId;
    @TableField("pest_name")
    private String IPName;
    //寄主
    @TableField("host")
    private String  host;
    //繁殖
    @TableField("breed")
    private String breed;
    //天敌
    @TableField("enemy")
    private String enemy;
    //幼虫图片
    @TableField("larva")
    private  String larva;
    //成虫图片
    @TableField("adult")
    private  String adult;
    //防治措施
    @TableField("control")
    private  String control;
    //主要危害
    @TableField("harm")
    private String harm;

    public InsectPestBean() {
    }

    public InsectPestBean(String IPName, String host, String breed, String enemy, String larva, String adult, String control, String harm) {
        this.IPName = IPName;
        this.host = host;
        this.breed = breed;
        this.enemy = enemy;
        this.larva = larva;
        this.adult = adult;
        this.control = control;
        this.harm = harm;
    }

    public int getIPId() {
        return IPId;
    }

    public void setIPId(int IPId) {
        this.IPId = IPId;
    }

    public String getIPName() {
        return IPName;
    }

    public void setIPName(String IPName) {
        this.IPName = IPName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public String getEnemy() {
        return enemy;
    }

    public void setEnemy(String enemy) {
        this.enemy = enemy;
    }

    public String getLarva() {
        return larva;
    }

    public void setLarva(String larva) {
        this.larva = larva;
    }

    public String getAdult() {
        return adult;
    }

    public void setAdult(String adult) {
        this.adult = adult;
    }

    public String getControl() {
        return control;
    }

    public void setControl(String control) {
        this.control = control;
    }

    public String getHarm() {
        return harm;
    }

    public void setHarm(String harm) {
        this.harm = harm;
    }

    @Override
    public String toString() {
        return "InsectPest{" +
                "IPId=" + IPId +
                ", IPName='" + IPName + '\'' +
                ", host='" + host + '\'' +
                ", breed='" + breed + '\'' +
                ", enemy='" + enemy + '\'' +
                ", larva='" + larva + '\'' +
                ", adult='" + adult + '\'' +
                ", control='" + control + '\'' +
                ", harm='" + harm + '\'' +
                '}';
    }
}
